<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('userapply', function (Blueprint $table) {
            $table->charset = 'utf8mb4';
            $table->collation = 'utf8mb4_unicode_ci';
            $table->id();
            $table->string('name', 50)->nullable();
            $table->string('tel', 20)->nullable();
            $table->string('applytype', 200)->nullable();
            $table->integer('state')->nullable()->default(0);
            $table->string('data', 2000)->nullable();
            $table->string('des', 200)->nullable();
            $table->string('operator', 50)->nullable();
            $table->integer('isdel')->nullable()->default(0);
            $table->timestamp('approvedate')->nullable();
            $table->timestamp('created_at')->nullable();
        });
    }
    
    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('userapply');
    }
};
